using System;
using System.Collections;
using System.Collections.Generic;

using DATA.Base;

namespace DATA.BusinessObjects
{
    public partial class Loaiphong : BusinessBase<string>
    {
        #region Declarations

		private string _tenLoaiPhong = null;
		private float? _donGia = null;
		
		
		private IList<Chitietdoanhthutheoloaiphong> _chitietdoanhthutheoloaiphongs = new List<Chitietdoanhthutheoloaiphong>();
		private IList<Phong> _phongs = new List<Phong>();
		
		#endregion

        #region Constructors

        public Loaiphong() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_tenLoaiPhong);
			sb.Append(_donGia);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string TenLoaiPhong
        {
            get { return _tenLoaiPhong; }
			set
			{
				OnTenLoaiPhongChanging();
				_tenLoaiPhong = value;
				OnTenLoaiPhongChanged();
			}
        }
		partial void OnTenLoaiPhongChanging();
		partial void OnTenLoaiPhongChanged();
		
		public virtual float? DonGia
        {
            get { return _donGia; }
			set
			{
				OnDonGiaChanging();
				_donGia = value;
				OnDonGiaChanged();
			}
        }
		partial void OnDonGiaChanging();
		partial void OnDonGiaChanged();
		
		public virtual IList<Chitietdoanhthutheoloaiphong> Chitietdoanhthutheoloaiphongs
        {
            get { return _chitietdoanhthutheoloaiphongs; }
            set
			{
				OnChitietdoanhthutheoloaiphongsChanging();
				_chitietdoanhthutheoloaiphongs = value;
				OnChitietdoanhthutheoloaiphongsChanged();
			}
        }
		partial void OnChitietdoanhthutheoloaiphongsChanging();
		partial void OnChitietdoanhthutheoloaiphongsChanged();
		
		public virtual IList<Phong> Phongs
        {
            get { return _phongs; }
            set
			{
				OnPhongsChanging();
				_phongs = value;
				OnPhongsChanged();
			}
        }
		partial void OnPhongsChanging();
		partial void OnPhongsChanged();
		
        #endregion
    }
}
